import React,{useEffect, useState} from "react";
import './index.less'
import { useNavigate, useLocation, useParams } from 'react-router-dom';

import utils from '../../util/utils'

function WebTool(props){
  

  const changeOnlineBoxIsShow = ()=>{
    props.setOnlineBoxIsShow((preValue)=>{
      return !preValue;
    })
  }
 
  const goTop = ()=>{
    document.documentElement.scrollTop = 0;
  }
  return (
    <React.Fragment>
        <div className="web-tool tool-1" onClick={changeOnlineBoxIsShow.bind(this)}>
          <div className="kefu"></div>
        </div>
        <div className="web-tool tool-2" onClick={goTop.bind(this)}>
          <div className="gotop"></div>
        </div>
    </React.Fragment>
  )
}

export default WebTool